/**
 * Domain class: Company
 * 
 * @author    Dmitry Ustimov
 * @date      March 2012
 * 
 */
package com.gr

class Company {

	String title
	String email
	Date startDate

	static hasMany = [ divisions : Division ]

	static constraints = {
		title(size: 2..50, blank: false, unique: true)
		email(email: true, nullable: true)
		startDate(nullable: true)
	}

	String toString() {
		return "Company: ${title}"
	}
}